const bill = function(products, freight) {
    let total = 0
    for(let i = 0; i < products.length; i++ ) {
    total = total + products[i] + freight

    }
    return total
    }

    const shopping= [39, 99, 129]
    const fre=8
    console.log(bill(shopping,fre))

    var btn = document.querySelector("button");
btn.addEventListener("click", function(){
    console.log("Hi")
});